//
//  AboutSystemViewController.m
//  WHB_logist
//
//  Created by 徐国庆 on 16/1/7.
//  Copyright (c) 2016年 turing. All rights reserved.
//

#import "AboutSystemViewController.h"

@interface AboutSystemViewController ()<UITableViewDataSource, UITableViewDelegate>

@property(nonatomic, strong)UITableView *tableView;

@end

@implementation AboutSystemViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self initWithView];
}

#pragma mark UITableViewDelegate
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    static NSString *indentifer = @"aboutSystemCell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:indentifer];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue2 reuseIdentifier:indentifer];
    }
    cell.textLabel.text = @"版本信息";
    cell.textLabel.font = [UIFont systemFontOfSize:17];
    cell.textLabel.textAlignment = 0;
    cell.textLabel.textColor = [UIColor HexStrWithColor:@"999999"];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(kUIScreenWidth - 40, 0, 30, 44)];
    label.text = @"1.0";
    [cell.contentView addSubview:label];
    
    return cell;
}

#pragma mark 初始化视图
- (void)initWithView{
    self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 15, kUIScreenWidth, kUIScreenHeight) style:UITableViewStylePlain];
    self.tableView.dataSource = self;
    self.tableView.delegate = self;
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    self.tableView.backgroundColor = [UIColor HexStrWithColor:@"eeeeee"];
    [self.view addSubview:self.tableView];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
